# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=nuklear
pkgver=4.9.6
pkgrel=0
pkgdesc="A single-header ANSI C cross-platform GUI library"
url="https://immediate-mode-ui.github.io/Nuklear"
arch="noarch"
license="MIT"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Immediate-Mode-UI/Nuklear/archive/refs/tags/$pkgver.tar.gz"

package() {
	cd "$srcdir"/Nuklear-"$pkgver"
	install -Dm644 nuklear.h "$pkgdir"/usr/include/nuklear.h
	install -Dm644 Readme.md "$pkgdir"/usr/share/doc/"$pkgname"/Readme.md
}

sha512sums="928dcf19a5a2a8d2798a89178f82d04d7e4d7a280d5915bcbcc507f828cf653719279f5949fb45c015c5372d54bfe7a1b6679a781dcca9f3710f85a9d347f160  $pkgname-$pkgver.tar.gz"
